<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="../include/header.jsp" />
<script type="text/javaScript">
<!--
	/* pagination 페이지 링크 function */
	function listPage(){
		$('#viewForm').attr('action', '<c:url value="/currentSystem/currentSystemList.do"/>');
		$('#viewForm').submit();
	}
	function saveFormPage() {
		$('#viewForm').attr('action', '<c:url value="/currentSystem/currentSystemRecordSave.do"/>');
		$('#viewForm').submit();
	}
-->
</script>
<!-- contents s -->
<div class="container" id="container">
	<span class="round lt">&nbsp;</span>
    <span class="round rt">&nbsp;</span>
    <span class="round lb">&nbsp;</span>
    <span class="round rb">&nbsp;</span>
    <div class="container_area">
    	<form name="viewForm" id="viewForm" action="<c:url value="/currentSystem/currentSystemRecordSave.do"/>" method="post">
			<input type="hidden" name="scs_sys_key" id="scs_sys_key" value="${resultVO.scs_sys_key }"/>
			<input type="hidden" name="scs_area_key" id="scs_area_key" value="${resultVO.scs_area_key }"/>
        <h2 class="tit_h2">이력사항 현황</h2>
        	<h3 class="tit_h3">현장명: ${resultVO.scs_area_name }</h3>
            <jsp:include page="../include/navi.jsp" />
            <span class="ico_print"><a href="#print"  onclick="printPage('<c:url value="/common/csRecordPrintView.do" />?scs_sys_key=${resultVO.scs_sys_key }&amp;scs_area_key=${resultVO.scs_area_key }');return false;"><img src="/htmlRes/images/ico_print.jpg" alt="인쇄버튼"></a></span>
            <div class="table_wrap"><!-- D : table은 div table_wrap 싸고감 -->
                <table summary="설비현황 목록" class="table_list">
                    <caption>설비현황 목록</caption>
                    <colgroup> <!-- D : col width로 테이블 넓이 조절 -->
                        <col width="20%" />
                        <col width="15%" />
                        <col width="15%" />
                        <col width="10%" />
                        <col width="30%" />
                        <col width="10%" />
                    </colgroup>
                    <thead>
                        <tr>
                            <th scope="col">번호</th>
                            <th scope="col">품명</th>
                            <th scope="col">타입</th>
                            <th scope="col">단위/수량</th>
                            <th scope="col">장비사양</th>
                            <th scope="col">동력</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>${resultVO.scs_sys_num}</td>
                            <td>${resultVO.scs_sys_name}</td>
                            <td>${resultVO.scs_sys_type}</td>
                            <td>${resultVO.scs_sys_unit} / ${resultVO.scs_sys_qty}</td>
                            <td class="alL">${resultVO.scs_sys_spec}</td>
                            <td>${resultVO.scs_sys_power}</td>
                        </tr>
                        
                    </tbody>
                </table>
            </div><!--//table_wrap-->
            
            <div class="table_wrap"><!-- D : table은 div table_wrap 싸고감 -->
                <table summary="설비현황 목록" class="table_write">
                    <caption>설비현황 목록</caption>
                    <colgroup> <!-- D : col width로 테이블 넓이 조절 -->
                        <col width="15%" />
                        <col width="35%" />
                        <col width="15%" />
                        <col width="35%" />
                    </colgroup>
                    <tbody>
                        <tr>
                            <th scope="row"><label for="scs_hstry_maker">제조사</label></th>
                            <td class="alL"><input type="text" name="scs_hstry_maker" id="scs_hstry_maker" value="${resultVO.scs_hstry_maker }" title="제조사" style="width:90%"/></td>
                            <th scope="row"><label for="scs_hstry_huilder">시공사</label></th>
                            <td class="alL"><input type="text" name="scs_hstry_huilder" id="scs_hstry_huilder" value="${resultVO.scs_hstry_huilder }" title="시공사" style="width:90%"/></td>
                        </tr>
                        <tr>
                        	<th scope="row"><label for="scs_hstry_idate">설치일</label></th>
                            <td class="alL"><input type="text" name="scs_hstry_idate" id="scs_hstry_idate" value="${resultVO.scs_hstry_idate }" title="설치일" style="width:90%"/></td>
                            <th scope="row"><label for="scs_hstry_gdate">하자기간</label></th>
                            <td class="alL"><input type="text" name="scs_hstry_gdate" id="scs_hstry_gdate" value="${resultVO.scs_hstry_gdate }" title="하자기간" style="width:90%"/></td>
                        </tr>
                        <tr>
                        	<th scope="row">이력사항</th>
                            <td colspan="3"><textarea name="scs_hstry_cont" id="scs_hstry_cont" title="이력사항을 입력하세요" rows="50" cols="300">${resultVO.scs_hstry_cont }</textarea></td>
                        </tr>
                    </tbody>                        
                </table>
            </div><!--//table_wrap-->
            <div class="btn_bbs">
            	<a href="<c:url value='/currentSystem/currentSystemList.do' />" onclick="listPage();return false;" class="btn_wh">목록</a>
            	<a href="<c:url value="/currentSystem/currentSystemRecordSave.do" />" onclick="saveFormPage();return false;" class="btn_re">저장</a>
            </div>
            <!-- 검색조건 유지 -->
			<input type="hidden" name="pageIndex" id="pageIndex" value="${resultVO.pageIndex }"/>
    	</form>
    </div><!--//container_area-->
</div>
<!-- contents e -->
<jsp:include page="../include/footer.jsp" />
<jsp:include page="../include/messagealert.jsp" />